<template>
  <div>
    <div class="container">
      输入搜索
      <el-input v-model="name" placeholder="请输入教师姓名"></el-input>上次上传时间
      <el-date-picker v-model="value1" type="datetime" placeholder="选择日期时间"></el-date-picker>

      <el-button type="primary" @click="searchFun">查询</el-button>
      <el-button @click="resetFun">重置</el-button>
      <el-button @click="showDialogfun">添加</el-button>
      <el-button type="primary" @click="batchDelFun">批量删除</el-button>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value1: "",
      name: "",
    };
  },
  methods: {
    showDialogfun() {
      this.$emit("parentIsshowfun");
    },
    searchFun() {
      this.$emit("parentsearchFun", this.name);
    },
    batchDelFun() {
      this.$emit("parentbatch");
    },
    resetFun() {
      this.$emit("parentresetFun");
    },
  },
};
</script>

<style lang="less" scoped>
.container {
  display: flex;
  align-items: center;
  height: 60px;
  background-color: #fff;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-left: 30px;
  .el-input {
    width: 140px;
    margin-right: 20px;
    margin-left: 8px;
  }
  .el-button {
    font-size: 12px;
    font-weight: 700;
  }
}
</style>